package com.zttek.videoShareProject.common.json;

import com.zttek.videoShareProject.common.keyword.CommentUttil;
import com.zttek.videoShareProject.modules.model.Comment;

import java.util.Date;

public class CommentVO {
    /**
     * 添加评论json对象
     */
    public static class AddComment{
        private  Long video_id;
        private Long user_id;
        private String context;

        public Long getVideo_id() {
            return video_id;
        }

        public void setVideo_id(Long video_id) {
            this.video_id = video_id;
        }

        public Long getUser_id() {
            return user_id;
        }

        public void setUser_id(Long user_id) {
            this.user_id = user_id;
        }

        public String getContext() {
            return context;
        }

        public void setContext(String context) {
            this.context = context;
        }

        public Comment getComment(){
            Comment comment = new Comment();
            comment.setCommentDate(new Date());
            comment.setContext(context);
            comment.setUserId(user_id);
            comment.setVideoId(video_id);
            return comment;
        }
    }

    /**
     * 返回添加后的单个评论
     */
    public static class CommentForAddReturn{
        private Long comment_id;
        private String account;
        private String image_url;
        private String context;
        private String comment_date;

        public Long getComment_id() {
            return comment_id;
        }

        public void setComment_id(Long comment_id) {
            this.comment_id = comment_id;
        }

        public String getAccount() {
            return account;
        }

        public void setAccount(String account) {
            this.account = account;
        }

        public String getImage_url() {
            return image_url;
        }

        public void setImage_url(String image_url) {
            this.image_url = image_url;
        }

        public String getContext() {
            return context;
        }

        public void setContext(String context) {
            this.context = context;
        }

        public String getComment_date() {
            return comment_date;
        }

        public void setComment_date(String comment_date) {
            this.comment_date = comment_date;
        }
    }

}
